package 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.TextEvent;
	import flash.text.TextField;
	import com.Controller.*;
	
	/**
	 * ...
	 * @author Imola
	 */
	[SWF(width="800", height="500", backgroundColor="#000000", frameRate="24")]
	public class Main extends Sprite 
	{
		
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			var tlc:TestLevelController = new TestLevelController(stage.stageWidth, stage.stageHeight);
			tlc.setNrOfColumns(6);
			tlc.setNrOfRows(4);
			tlc.initTestLevelController();
			addChild(tlc);
		}
	}
}